package com.example.video.admin_server.entity.vo;

import com.example.video.admin_server.entity.SysRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 角色详情信息
 * <p/>
 *
 * @author : yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysRoleDetailsVo对象", description="角色详情类")
public class SysRoleDetailsVo extends  SysRole{

    public SysRoleDetailsVo(){
        super();
    }

    public SysRoleDetailsVo(SysRole sysRole){
        this.setId(sysRole.getId()).setDescription(sysRole.getDescription()).setStatus(sysRole.getStatus()).setName(sysRole.getName()).setSign(sysRole.getSign());
    }

    @ApiModelProperty("菜单id数组")
    private List<Integer> menuIds;
}
